package com.example.kemgdemo.dto.req;

import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 学号：1401030048
 * Created by 梁嘉伟 on 2019/7/12
 */
@Getter
@Setter
public class RegisterReq {

    @NotBlank(message = "用户名不能为空")
    private String username;

    @NotBlank(message = "密码不能为空")
    private String password;

    @NotBlank(message = "重复密码不能为空")
    private String repeatPassword;

    @NotNull(message = "性别不能为空")
    private Integer gender;

}
